package com.xuelang.pipeline.artifact.infrastructure.resource.converter;

import com.xuelang.pipeline.artifact.domain.resource.ArtifactUser;
import com.xuelang.pipeline.artifact.infrastructure.resource.dataobject.ArtifactUserDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 仓库用户实体与仓库用户DO转换器类
 *
 * @author xiwen.zxg
 * @since 2024/5/15
 */
@Mapper
public interface ArtifactUserToArtifactUserDOConverter {

    ArtifactUserToArtifactUserDOConverter INSTANCE = Mappers.getMapper(ArtifactUserToArtifactUserDOConverter.class);

    /**
     * ArtifactUser转化为ArtifactUserDO
     * @param artifactUser
     * @return
     */
    ArtifactUserDO artifactUserToArtifactUserDO(ArtifactUser artifactUser);

    /**
     * ArtifactUserDO转化为ArtifactUser
     * @param artifactUserDO
     * @return
     */
    ArtifactUser artifactUserDOToArtifactUser(ArtifactUserDO artifactUserDO);

}
